package com.iwinding.ladygg.utils;

import android.app.Activity;
import android.drm.DrmStore;
import android.support.annotation.NonNull;
import android.support.annotation.StringRes;

import com.afollestad.materialdialogs.DialogAction;
import com.afollestad.materialdialogs.MaterialDialog;
import com.afollestad.materialdialogs.MaterialDialog.SingleButtonCallback;
import com.iwinding.ladygg.R;

/**
 * Created by 82218 on 2017/12/10.
 */

public class MaterialDialogUtils {

    public static MaterialDialog openMaterialDialog(Activity mContext, @StringRes int content, @StringRes int left, @StringRes int right,
                                                    SingleButtonCallback leftCallBack, SingleButtonCallback rightCallBack,
                                                    boolean isOutside) {
        return new MaterialDialog.Builder(mContext)
                .content(content)
                .positiveText(left)
                .negativeText(right)
                .onPositive(leftCallBack)
                .onNegative(rightCallBack)
                .canceledOnTouchOutside(isOutside).show();
    }

}
